<template>
  <div class="recommend">
    <div class="recommend_first">
      <router-link to='/Details'>
      <div class="first_left">
        <img src="https://p0.meituan.net/dpdeal/fef03dce2e67c947fd39085f293619a61301449.jpg%40450w_280h_1e_1c_1l%7Cwatermark%3D0" alt=""
            class="logo" >
      </div>
      <div class="first_right">
        <h1>南亚风情豪华泳池派对轰趴馆</h1>
        <span class="left">2480元</span>
        <span class="mid">门市价：3700元</span>
        <span class="right">已售10</span>
      </div>
      </router-link>
    </div>
    <div class="recommend_list">
      <div class="list_item" v-for="item in list" :key="item.id">
        <div class="item_img">
          <img :src="item.img_url" alt="">
        </div>
        <div class="item_content">
          <div class="item_box">
            <h3>{{item.name}}</h3>
            <p>{{item.desc}}</p>
            <div class="item_content_footer">
              <span class="m_price">{{item.m_price}}元</span>
              <span class="price">门市价：{{item.price}}元</span>
              <span class="number">已售{{item.number}}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="recommend_footer">
      <p>查看其他团购
      <span class="iconfont xiala">&#xe617;</span>
      </p>
      
    </div>
  </div>
</template>

<script>
export default {
  name: "EntermainRecommend",
  props: {
    list: Array
  }
}
</script>

<style scoped>
.recommend h3{
  text-align: left;
  color: black;
  font-size: .32rem;
  margin-top: .2rem;
}
.list_item{
  border-top: .02rem solid #c1b7b7;
  margin-top: .2rem;
  padding-top: .2rem;
  width: 100%;
  overflow: hidden;
}
.item_img{
  width: 30%;
  float: left;
}
.item_img img{
  width: 100%;
}
.item_content{
  width: 70%;
  float: right;
  text-align: left;
}
.item_box{
  margin: 0 .2rem;
}
.item_content_footer{
  /* margin-top: 1rem; */
  width: 100%;
  overflow: hidden;
}
.item_content_footer span{
  color: black;
  float: left;
  display: block;
}
.item_content_footer span.number{
  float: right;
}
.item_content_footer span.m_price{
  color: green;
  font-size: .4rem;
  margin-top: -.08rem;
  margin-right: .2rem;
}
.recommend_footer {
  height: 0.8rem;
  line-height: 0.8rem;
  text-align: center;
  color: #06c1ae;
  border: 1px solid rgb(235, 234, 233);
}
.recommend_first{
  margin-top: 0.3rem;
  width: 100%;
  height: 2rem;
}
.first_left{
   width: 30%;
   float: left;
}
.first_left img{
  width:100%;
}
.first_right{
  width: 70%;
  float: right;
  text-align: left;
}
.first_right h1{
  text-align: left;
  color: black;
  margin-left: 0.3rem;
  font-size: .32rem;
  margin-top: .2rem;
}
.first_right span{
   color: black;
  float: left;
  display: block;
}
.first_right span.left{
  margin-left: 0.3rem;
  color: green;
  font-size: .4rem;
  margin-top: -.08rem;
  margin-right: .2rem;
}
.first_right span.right{
  float: right;
}
</style>
